package cs2340.todolist.application;

import android.app.Application;
import cs2340.todolist.model.account_management.ItemInformationManager;
import cs2340.todolist.model.session_management.SessionManager;

/**
 * application to be able to persist the current user
 * @author Robby
 *
 */
public class ToDoListApplication extends Application {
	//contains the account manager for the current session
	private SessionManager sessionManager;
	private ItemInformationManager itemManager;
	
	/**
	 * when the application is created
	 */
	public void onCreate(){
		//initialize the session manager
		sessionManager = new SessionManager();
		itemManager = new ItemInformationManager();
		super.onCreate();
	}
	
	public SessionManager getSessionManager(){
		return sessionManager;
	}
	
	public ItemInformationManager getItemInformationManager() {
		return itemManager;
	}
	
}
